(function(){
    var FeedbackOptions=FeedbackOptions||{};
    FeedbackOptions.style=FeedbackOptions.style||'cms';
    FeedbackOptions.host=FeedbackOptions.host||'info.xcar.com.cn';
    var className='return_coat';
    //if(document.body.clientWidth<1140)return;
    var htmlStr='<!-- 右侧随动 -->\
	<!-- 右侧随动 判断页面宽度为1024时，修改下面#control_coat的class修改为“control_coat1024” -->\
	<div class="'+className+'" style="display:none;" id="control_coat">\
	<div class="return_top" id="return_top"><a href="javascript:void(0)">回到顶部</a></div>\
	</div>\
	<!-- /右侧随动 -->';
    document.write(htmlStr);
    var controlCoat=document.getElementById('control_coat')
    window.onscroll=function(){
        var thisTop=document.body.scrollTop+document.documentElement.scrollTop;
        if(thisTop>50){
            controlCoat.style.display="block";

        }else{
            controlCoat.style.display="none";
        }
    }
    function backTop(){
        if(typeof jQuery!=='undefined'){
            jQuery('html,body').animate({scrollTop:0});
        }else{
            window.scrollTo(0,0);
        }
    }
    return_top.onclick=function(){
        backTop();
    }

})();